﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using FXC.SL.CS.Modal;

namespace FXC.SL.CS.ViewModal
{
    public class DataWindowViewModal
    {
        DataWindowItem _data = new Modal.DataWindowItem();

        public DataWindowItem Data
        {
            get { return _data; }
            set { _data = value; }
        }

        public void Update(FXC.SL.FXCenterService.FXData fxcData)
        {
            Data.DateTimeData = fxcData.ProcessDateTime;
            Data.Close = fxcData.ClosePrice;
            Data.Open = fxcData.OpenPrice;
            Data.Low = fxcData.LowPrice;
            Data.High = fxcData.HighPrice;
            Data.Volume = fxcData.Volume;
        }
    }
}
